package com.wteam.dragon.shop.pojo.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author 陈晓辉
 * @Date 2021/3/24 20:15
 */
@Getter
@Setter
public class CouponVo implements Serializable {
    private Long id;

    private Integer type;

    private String name;

    private Integer platform;

    private Integer count;

    @NotNull(message = "金额不能为空")
    private BigDecimal amount;


    private Integer perLimit;

    private BigDecimal minPoint;

    @NotNull(message = "开始时间不能为空")
    private Date startTime;

    @NotNull(message = "结束时间不能为空")
    private Date endTime;

    private Integer useType;

    private String note;

    @NotNull(message = "发行数量不能为空")
    private Integer publishCount;

    private Integer useCount;

    private Integer receiveCount;

    @NotNull(message = "截止时间不能为空")
    private Date enableTime;

    private String code;

    private Integer memberLevel;
}
